cc5918dd50089991feaf7353f76b922ebbebe4fb,src/main/java/com/solab/iso8583/parse/BinaryParseInfo.java,BinaryParseInfo,parse,#number#number[]#number#CustomField#,43
Before Change
return new IsoValue<byte[]>(type, binval, binval.length, null);
} else {
@SuppressWarnings({"unchecked", "rawtypes"})
IsoValue<?> v = new IsoValue(type, custom.decodeField(new String(buf, pos, length*2, getCharacterEncoding())), length, custom);
if (v.getValue() == null) {
return new IsoValue<byte[]>(type, binval, binval.length, null);
}
return v;
}
}
After Change
if (custom == null) {
return new IsoValue<byte[]>(type, binval, binval.length, null);
} else {
T dec = custom.decodeField(new String(buf, pos, length*2, getCharacterEncoding()));
return dec == null ? new IsoValue<byte[]>(type, binval, binval.length, null) :
new IsoValue<T>(type, dec, length, custom);
}
}